package com.droowa.model.dao;

import java.sql.SQLException;
import java.util.List;

import com.droowa.domain.BoardManagement;
import com.droowa.domain.BoardPaper;

public interface BoardPaperDAO {

	public abstract List<BoardPaper> selectBoardPaperList(BoardManagement bm, int page) throws SQLException;
	public abstract int selectTotalContent(int bid) throws SQLException;
	//board 테이블에 내용을 하나 insert
	public abstract int insertContentForNewCount(BoardPaper paper, int bid);
	//글 조회시 조회수 카운트 증가
	public abstract int updateViewCount(int bid, int num) throws SQLException;
	//글정보 조회
	public abstract BoardPaper selectContentByNO(int bid, int num) throws SQLException;	
	public abstract int updateContent(BoardPaper paper);
	public abstract int deleteContentByNO(int bid, int num) throws SQLException;
	public abstract int updateRestep(int bid, int refamily, int restep);
	public abstract int insertContentForReply(BoardPaper paper);
}
